import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false

// 配置自适应屏幕
import "amfe-flexible"

// 配置规范样式表
import "normalize.css/normalize.css"
// 引入通用样式表
import "@/assets/css/main.css"
// 引入iconfont
import "@/assets/iconfont/iconfont.css"

// 按需引入vant插件
import "@/plugins/vant"

// 引入api
import api from "@/api"
// 注册api原型事件
Vue.prototype.$api = api;

// 引入mock拦截
import "@/mock"

// 导入apiProxy 将过代理服务器的api注册到vue原型
import { apiProxy } from "@/utils/request"
Vue.prototype.$apiProxy = apiProxy;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
